package com.sczmgk.track.constant;

/**
 * Created by Administrator on 2017/9/25.
 */

public class Constant {

    /**
     * 服务器公钥
     */
    public static final String SERVICE_PUBLIC_KEY = "8D219C38AD1407F46C12H8I1";

    //    public static String BASE_URL = "http://192.168.0.249:8080/api/appapi/";
//    public static String BASE_URL = "http://192.168.0.181:8081/api/appapi/";
//    public static String BASE_URL = "http://192.168.0.187:8082/api/appapi/";
    public static String BASE_URL = "http://112.74.194.118:8050/api/appapi/";
//    public static String BASE_URL = "http://192.168.0.191:8080/appapi/v1/oms/";

    /**
     * 获取密钥
     */
    public static final String POST_SESSIONKEYS_URL = BASE_URL + "GetSessionKey";

    ////////////////////////////////////////////////////////////////////////////////////
    /**
     * 登录的url
     */
    public static final String LOGIN_URL = BASE_URL + "userinfo/login";

    /**
     * 签到
     */
    public static final String SIGN_URL = BASE_URL + "usersign/usersign";

    /**
     * 获取签到信息
     */
    public static final String RECORD_SIGN = BASE_URL + "usersign/getsignlist";
    /**
     * 上报imei
     */
    public static final String POST_UPLOAD_IMEI = BASE_URL + "common/uploadimei";

    /**
     * 取得App版本
     */
    public static final String GET_APP_VERSION = BASE_URL + "common/getsoftvison";

    /**
     * 上传头像
     */
    public static final String UPDATE_HEAD_PHOTO = BASE_URL + "userinfo/updateimg";

    /**
     * 修改密码
     */
    public static final String CHANGE_PWD_URL = BASE_URL + "userinfo/updatepwd";

    /**
     * 设备激活
     */
    public static final String DEVICE_ACTIVE_URL = BASE_URL + "userinfo/activation";

    /**
     * 更换设备
     */
    public static final String CHANGE_DEVICE_URL = BASE_URL + "userinfo/updateimei";

    public static final String ADD_LOG_URL = BASE_URL + "tracklog/addlog";

    public static final String CLOSE_LOG_URL = BASE_URL + "tracklog/closelog";

    public static final String CHECK_RECORD_STATUS_URL = BASE_URL + "tracklog/isopen";

    public static final String GET_LOG_LIST_URL = BASE_URL + "tracklog/getlist";

    /**
     * 获取用户信息
     */
    public static final String GET_USER_INFO_URL = BASE_URL + "userinfo/getuserinfo";


    ////////////////////////////////////////////////////////////////////////////////////

    /**
     * 缓存的工号
     */
    public static final String JOB_NUMBER = "job_number";

    /**
     * 错误信息发送的msg
     */
    public static final int ON_ERROR_CODE_ERROR_MSG = 232;

    /**
     * 访问成功后发送的msg
     */
    public static final int ON_LOAD_SUCCESS = 132;

    /**
     * userid
     */
    public static final String LOGIN_UID = "login_uid";

    /**
     * 是否已登录
     */
    public static final String IS_LOGIN_KEY = "islogin";

    /**
     * 是否断开网络
     */
    public static final String IS_DISCONNECTION_NETWORK = "is_disconnection_network";

    /**
     * 验证正确(已激活)
     */
    public static final int DEVICE_ACTIVE = 0;

    /**
     * 手机更换
     */
    public static final int DEVICE_CHANGE_PHONE = 1;

    /**
     * 设备未激活
     */
    public static final int DEVICE_NOT_ACTIVE = 2;

    /**
     * 管理员电话
     */
    public static final String managerPhone = "028-82802222";


    ////////////////////////////百度鹰眼///////////////////////////////////

    public static final int REQUEST_CODE = 1;

    public static final int RESULT_CODE = 1;

    public static final int DEFAULT_RADIUS_THRESHOLD = 0;

    public static final int PAGE_SIZE = 5000;

    /**
     * 轨迹分析查询间隔时间（1分钟）
     */
    public static final int ANALYSIS_QUERY_INTERVAL = 60;

    /**
     * 停留点默认停留时间（1分钟）
     */
    public static final int STAY_TIME = 60;

    /**
     * 启动停留时间
     */
    public static final int SPLASH_TIME = 3000;

    /**
     * 默认采集周期
     */
    public static final int DEFAULT_GATHER_INTERVAL = 5;

    /**
     * 默认打包周期
     */
    public static final int DEFAULT_PACK_INTERVAL = 30;

    /**
     * 实时定位间隔(单位:秒)
     */
    public static final int LOC_INTERVAL = 10;

    /**
     * 最后一次定位信息
     */
    public static final String LAST_LOCATION = "last_location";

}
